from django.conf.urls.defaults import patterns,include
from AIB_Monitor.views import get_principal,get_home
from AIB_Login.views import login_aib,logout_aib,userInfo_ajax_html
from AIB_Ajax_Content_Manager.views import get_content
from paypal_ipn.views import ipn
from cs_support.views import retornoTicketAjax,get_csSupport_form_ajax_html

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    (r'^$', get_principal),
    (r'^home/', get_home),
    (r'^user_info/', userInfo_ajax_html),
    (r'^content_manager/', get_content),
	(r'^admin/', include(admin.site.urls)),
    (r'^aib_login/', login_aib),
    (r'^aib_logout/', logout_aib),
    (r'^paypal_ipn/fc3ec68567953033f7/', ipn),
    (r'^cs_support/enviar', retornoTicketAjax),
    (r'^cs_support/form_html', get_csSupport_form_ajax_html),
    #(r'^paypal_ipn/b1e91bb160f28c0d7e4b77bde7418786ff6844ea/success/', paypal_success),
    #(r'^paypal_ipn/b1e91bb160f28c0d7e4b77bde7418786ff6844ea/cancel/', paypal_cancel),
    (r'^content/', include('AIB_Ajax_Content_Manager.urls')),
    (r'^', include('registration.backends.default.urls')),
)

from django.conf import settings
if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    )
